package com.zh.work.service.platform.channel.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.zh.work.dao.platform.channel.QuickMerchMapper;
import com.zh.work.entity.channel.QuickMerchEntity;
import com.zh.work.service.platform.channel.QuickMerchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * code is far away from bug with the animal protecting
 * ┏┓　　　┏┓
 * ┏┛┻━━━┛┻┓
 * ┃　　　　　　　┃
 * ┃　　　━　　　┃
 * ┃　┳┛　┗┳　┃
 * ┃　　　　　　　┃
 * ┃　　　┻　　　┃
 * ┃　　　　　　　┃
 * ┗━┓　　　┏━┛
 * 　　┃　　　┃神兽保佑
 * 　　┃　　　┃代码无BUG！
 * 　　┃　　　┗━━━┓
 * 　　┃　　　　　　　┣┓
 * 　　┃　　　　　　　┏┛
 * 　　┗┓┓┏━┳┓┏┛
 * 　　　┃┫┫　┃┫┫
 * 　　　┗┻┛　┗┻┛
 *
 * @Description: 快捷商户设置业务逻辑实现层
 * @Author: Li.HuiNeng
 * @Create in: 2019/09/06
 * @Version: 1.0.1
 */
@Service
public class QuickMerchServiceImpl extends ServiceImpl<QuickMerchMapper, QuickMerchEntity> implements QuickMerchService {

    @Autowired
    private QuickMerchMapper mapper;


    @Override
    public IPage<QuickMerchEntity> selectQuickMerchPages(Page<QuickMerchEntity> page, QuickMerchEntity quickMerchEntity) {
        return mapper.getPageQuickMerchant(page, quickMerchEntity.getChannelCode(),
                quickMerchEntity.getMerchNo(),
                quickMerchEntity.getPlatformMerchNo(),
                quickMerchEntity.getTermNo());
    }

}
